﻿package cn.valorin.command.sub;

import static cn.valorin.configuration.languagefile.MessageSender.sm;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import cn.valorin.command.SubCommand;

public class PlayerHelp extends SubCommand{

	public PlayerHelp() {
		super("help", "h");
	}

	@Override
	public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) 
	{
	  Player p = null;
      if (sender instanceof Player)
      { p = (Player)sender; }
      sm("",p);
      sm("&3&lDuan&b&l&oWu &f&l>> &a玩家帮助",p,false);
      sm("&b/duanwu watermachine(wm) &f- &a打开浸泡机器面板",p,false);
      sm("&b/duanwu creatingtable(ct) &f- &a打开粽子制作台面板",p,false);
      sm("&b/duanwu changelang(cl) &f- &a查看服务器已加载的语言文件",p,false);
      sm("&b/duanwu changelang(cl) <语言文件> &f- &a更换语言环境",p,false);
      sm("",p);
	  return true;
	}

}
